﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ecreate.Popedom.Service.SpringImpl
{
    public class UseState
    {
        private string _Id = "";

        public string Id
        {
            get { return _Id; }
            set { _Id = value; }
        }

        private string _Name = "";

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

    }

    public class UseStateImpl
    {
        public IList<UseState> getAllState()
        {
            System.Collections.Generic.List<UseState> list = new System.Collections.Generic.List<UseState>();

            UseState s2 = new UseState();
            s2.Id = "1";
            s2.Name = "有效";
            list.Add(s2);

            UseState s1 = new UseState();
            s1.Id = "0";
            s1.Name = "无效";
            list.Add(s1);


            UseState usesearch = new UseState();
            usesearch.Id = "";
            usesearch.Name = "请选择";
            list.Insert(0, usesearch);

            return list;
        }

    }
}
